<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">

		

        <link rel="stylesheet" href="/mls_shop/web/Public/home/css/public.css">
        <link rel="stylesheet" href="/mls_shop/web/Public/home/css/head.css">
		<link href="/mls_shop/web/Public/static/AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css" />
		<link href="/mls_shop/web/Public/static/AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css" />
		<link href="/mls_shop/web/Public/static/css/seastyle.css" rel="stylesheet" type="text/css" />

		<link href="/mls_shop/web/Public/static/basic/css/demo.css" rel="stylesheet" type="text/css" />
        
		
		<link href="/mls_shop/web/Public/static/css/cartstyle.css" rel="stylesheet" type="text/css" />

		<link href="/mls_shop/web/Public/static/css/jsstyle.css" rel="stylesheet" type="text/css" />

		<script type="text/javascript" src="/mls_shop/web/Public/static/js/address.js"></script>

	</head>

<body>
	<!--顶部导航条 -->
	<div class="am-container header">
				<ul class="message-l">
					<div class="topMessage">
						<div class="menu-hd">
							<?php if(empty($_SESSION['User']['nickname'])): ?><a href="<?php echo U('User/index');?>" target="_top" class="h">亲，请登录</a>
								<a href="<?php echo U('User/register');?>" target="_top">免费注册</a><?php endif; ?>
							<?php if(!empty($_SESSION['User']['nickname'])): ?><a href="<?php echo U('Person/index');?>" target="_top" class="h"><?php echo ($_SESSION['User']['nickname']); ?></a>
								<a href="<?php echo U('User/outlogin');?>" target="_top">退出登录</a><?php endif; ?>
						</div>
					</div>
				</ul>
				<ul class="message-r">
					<div class="topMessage home">
						<div class="menu-hd"><a href="<?php echo U('Index/index');?>" target="_top" class="h">商城首页</a></div>
					</div>
					<div class="topMessage my-shangcheng">
						<div class="menu-hd MyShangcheng"><a href="<?php echo U('Person/index');?>" target="_top"><i class="am-icon-user am-icon-fw"></i>个人中心</a></div>
					</div>
					<div class="topMessage mini-cart">
						<div class="menu-hd"><a id="mc-menu-hd" href="<?php echo U('Shopcart/index');?>" target="_top"><i class="am-icon-shopping-cart  am-icon-fw"></i><span>购物车</span><strong id="J_MiniCartNum" class="h">0</strong></a></div>
					</div>
					<div class="topMessage favorite">
						<div class="menu-hd"><a href="<?php echo U('Collect/index');?>" target="_top"><i class="am-icon-heart am-icon-fw"></i><span>收藏夹</span></a></div>
				</ul>
				</div>

				<!--悬浮搜索框-->

				<div class="nav white">
					<!--<div class="logo"><img src="/mls_shop/web/Public/static/images/logo.png" /></div>-->
					<div class="logoBig">
						<li><a href="<?php echo U('Index/index');?>" target="_top"><img src="/mls_shop/web/Public/static/images/logobig.png" /></a></li>
					</div>

					<div class="search-bar pr">
						<a name="index_none_header_sysc" href="#"></a>
						<form method="post" action="<?php echo U('Search/index');?>">
							<input id="searchInput" name="index_none_header_sysc" type="text" placeholder="搜索" autocomplete="off">
							<input id="ai-topsearch" class="submit am-btn" value="搜索" index="1" type="submit">
						</form>
					</div>
				</div>

				<div class="clear"></div>
			</div>





		<div class="concent">
			<form action="<?php echo U('Order/make');?>" method="post" name="theForm" id="theForm">
			<div class="theme-popover">

				<!--标题 -->
				<div class="am-cf am-padding">
					<div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">新增地址</strong> / <small>Add address</small></div>
				</div>
				<hr/>

				<div class="am-u-md-12">
					<div class="am-form am-form-horizontal">

						<div class="am-form-group">
							<label for="user-name" class="am-form-label">收货人</label>
							<div class="am-form-content">
								<input type="text" id="user-name" placeholder="收货人" name="receiver">
							</div>
						</div>

						<div class="am-form-group">
							<label for="user-phone" class="am-form-label">手机号码</label>
							<div class="am-form-content">
								<input name="tel" id="user-phone" placeholder="手机号必填" type="text" maxlength="11">
							</div>
						</div>

						<div class="am-form-group">
							<label for="user-phone" class="am-form-label">所在地</label>
							<div class="am-form-content address">
								<select id="pro" name="pro"></select>
								<select id="city" name="city"></select>
								<select id="area" name="area"></select>
								<select id="street" name="street"></select>
							</div>
						</div>

						<div class="am-form-group">
							<label for="user-intro" class="am-form-label">详细地址</label>
							<div class="am-form-content">
								<textarea class="" rows="3" id="user-intro" placeholder="输入详细地址" name="address"></textarea>
								<small>100字以内写出你的详细地址...</small>
							</div>
						</div>

						
					</div>
				</div>
			</div>
			
					

			<!--支付方式-->
			<div class="logistics">
				<h3>选择支付方式</h3>
				<ul class="pay-list">
					<li class="pay card"><label><input type="radio" name='paytype' value='1' checked="checked">在线支付</label></li>
					<li class="pay qq"><label><input type="radio" name='paytype' value='2'>货到付款</label></li>
				</ul>
			</div>
			<div class="clear"></div>
			
				<!--订单 -->
				

				
					<div id="payTable">
						<h3>确认订单信息</h3>
						<div class="cart-table-th">
							<div class="wp">
								<div class="th th-item">
									<div class="td-inner">商品信息</div>
								</div>
								<div class="th th-price">
									<div class="td-inner">单价</div>
								</div>
								<div class="th th-amount">
									<div class="td-inner">数量</div>
								</div>
								<div class="th th-sum">
									<div class="td-inner">金额</div>
								</div>
								<div class="th th-oplist">
									<div class="td-inner">配送方式</div>
								</div>
							</div>
						</div>
						<div class="clear"></div>



						<?php if(is_array($_SESSION['Mycar'])): foreach($_SESSION['Mycar'] as $k=>$v): ?><tr class="item-list">
							<div class="bundle  bundle-last">

								<div class="bundle-main">
									<ul class="item-content clearfix">
										<div class="pay-phone">
											<li class="td td-item">
												<div class="item-pic">
													<a href="#" class="J_MakePoint">
														<img src="/mls_shop/web/Uploads/<?php echo ($v['img']); ?>" class="itempic J_ItemImg" width="80"></a>
												</div>
												<div class="item-info">
													<div class="item-basic-info">
														<a href="#" class="item-title J_MakePoint" data-point="tbcart.8.11"><?php echo ($v['gname']); ?></a>
													</div>
												</div>
											</li>
											<li class="td td-info">
												<div class="item-props">
													<span class="sku-line">颜色：12#川南玛瑙</span>
													<span class="sku-line"><?php echo ($v['des']); ?></span>
												</div>
											</li>
											<li class="td td-price">
												<div class="item-price price-promo-promo">
													<div class="price-content">
														<em class="J_Price price-now price"><?php echo ($v['price']); ?></em>
													</div>
												</div>
											</li>
										</div>
										<li class="td td-amount">
											<div class="amount-wrapper ">
												<div class="item-amount ">
													<span class="phone-title">购买数量</span>
													<div class="sl">
														<em class="J_Price price-now num"><?php echo ($v['num']); ?></em>
													</div>
												</div>
											</div>
										</li>
										<li class="td td-sum">
											<div class="td-inner">
												<em tabindex="0" class="J_ItemSum number"><?php echo ($v['num']*$v['price']); ?></em>
											</div>
										</li>
										<li class="td td-oplist">
											<div class="td-inner">
												<span class="phone-title">配送方式</span>
												<div class="pay-logis">
													快递<b class="sys_item_freprice">10</b>元
												</div>
											</div>
										</li>

									</ul>
									<div class="clear"></div>

								</div>
							</tr>
							<div class="clear"></div><?php endforeach; endif; ?>
						

						
					</div>

					<div class="clear"></div>
					<div class="pay-total">
						
						<!--信息 -->
						<div class="order-go clearfix">
							<div class="pay-confirm clearfix">
								<div class="box">
									<div tabindex="0" id="holyshit267" class="realPay">
										<?php if(empty($ccc)): else: ?>
										<em class="t">满足:满<?php echo ($ccc['one']); ?>减<?php echo ($ccc['two']); ?>条件</em>
										<p>原价：<?php echo ($tprice['old']); ?>¥</p>
										<p>优惠：<?php echo ($ccc['two']); ?>¥</p><?php endif; ?>
										<em class="t">实付款：</em>
										<span class="price g_price ">
                                		<span>¥</span> <em class="style-large-bold-red " id="J_ActualFee"><?php echo ($tprice['now']?$tprice['now']:0); ?></em>
										</span>
									</div>		
								</div>
								<div class="clear"></div>
							</div>
						</div>
					</div>

					<div class="clear"></div>
					<div id="holyshit269" class="submitOrder">
									<div class="go-btn-wrap">
										<input type="submit" class="btn-go" value="提交订单">
										<!-- <a id="J_Go" href="success.html" class="btn-go" tabindex="0" title="点击此按钮，提交订单">提交订单</a> -->
									</div>
								</div>
					</form>
				</div>
			</div>
		</div>
		<a href="<?php echo U('Order/four');?>" class="url"></a>
		<div class="clear"></div>
		<script>
		$(function(){
			url = $('.url').attr('href');
			console.log(url);

			$.ajax({
				type:'get',
				url:url,
				success:function(data){
					console.log(data);
					//先清空原先的数据
					//遍历省份数据
					for(var i = 0; i<data.length;i++){
						$('<option value="'+data[i].id+'">'+data[i].name+'</option>').appendTo('#pro');
					}
				},
				dataType:'json',
				async:false,//同步!!!!!!!!!
			})

			//绑定事件
			$('#pro,#city,#area').change(function(){
				//获取当前的vale值
				var upid = $(this).val();
				// console.log(upid);
				//一触发change事件，就清空后面所有的数据
				$(this).nextAll('select').show().empty();
				//保留$(this)变量
				var _this = $(this);
				// console.log($(this));

				//请求下一级数据
				$.ajax({
					type:'get',
					url:url,
					data:"upid="+upid,
					success:function(data){
						//如果没有数据，就隐藏后面的下拉框
						if(!data){
							_this.nextAll('select').hide();
							return;
						};
						// console.log(data);
						// console.log($(this).constructor);
						//填充下一级的数据
						for(var i = 0; i<data.length;i++){
							$('<option value="'+data[i].id+'">'+data[i].name+'</option>').appendTo(_this.next('select'));
						}
						//自动触发后面的select的change事件
						_this.next('select').trigger('change');
					},
					dataType:'json',
				})
			})

			//自动加载省份的change事件
			$('#pro').trigger('change');
		})
		</script>

   
					<div id="com-foot">
					    <div class="inner">
					      <div class="flist">
					        <h4>买家帮助</h4>
					        <div>
					        <a href="noviceGuide.html" target="_blank">新手指南</a></div>
					        <div>
					        <a href="serviceEnsure.html" target="_blank">服务保障</a></div>
					        <div>
					        <a href="helpCommon.html" target="_blank">常见问题</a></div>
					        <div>
					        <a href="shoppingHelp.html" target="_blank">购物帮助</a></div>
					      </div>
					      <div class="flist">
					        <h4>商家帮助</h4>
					        <div>
					        <a href="#/business" target="_blank">商家入驻</a></div>
					        <div>
					        <a href="#" target="_blank">商家后台</a></div>
					        <div>
					        <a href="#" target="_blank">商家推广</a></div>
					      </div>
					      <div class="flist">
					        <h4>关于我们</h4>
					        <div>
					        <a href="aboutus.html" target="_blank">关于美丽说</a></div>
					        <div>
					        <a href="contactus.html" target="_blank">联系我们</a></div>
					      </div>
					      <div class="flist aboutus">
					        <h4>友情链接</h4>
					        <?php if(is_array($data2)): foreach($data2 as $key=>$v): ?><div>
					          <a href="<?php echo ($v["url"]); ?>" target="_block"><?php echo ($v["name"]); ?></a>
			                </div><?php endforeach; endif; ?>
					      </div>
					      <div class="flist service">
					      <h4>美丽说微信服务号</h4>
					      <img class="qrcode" src="/mls_shop/web/Public/home/imgs/include/fuwuhao.png" alt="美丽说服务号二维码" /></div>
					      <div class="flist last" style="float:left;">
					        <h4>美丽说客户端下载</h4>
					        <p style="background:none; margin-top:0px;" class="client">
					        <img class="qrcode" src="/mls_shop/web/Public/home/imgs/include/er.png"></p>
					      </div>
					      <div class="record">Copyright ©2016 Meilishuo.com &nbsp;
					      <a href="new1/v1/bmisc/518ea1bbd36948b90e658485d2700e62/181714310539.pdf" target="_blank">电信与信息服务业务经营许可证100798号</a>&nbsp;
					      <a href="p1/160811/idid_ifrtszjqmmzdazrumezdambqhayde_2436x3500.jpg" target="_blank">经营性网站备案信息</a>&nbsp;
					      <br />京ICP备11031139号&nbsp; 京公网安备110108006045&nbsp;&nbsp; 客服电话：4000-800-577&nbsp; 文明办网文明上网举报电话：010-82615762 &nbsp;
					      <a href="http://net.china.com.cn/index.htm" target="_blank">违法不良信息举报中心</a>
					      </div>
					    </div>
					  </div>

		</div>
		</div>
		<!--引导 -->
		<div class="navCir">
			<li class="active"><a href="home.html"><i class="am-icon-home "></i>首页</a></li>
			<li><a href="sort.html"><i class="am-icon-list"></i>分类</a></li>
			<li><a href="shopcart.html"><i class="am-icon-shopping-basket"></i>购物车</a></li>	
			<li><a href="../person/index.html"><i class="am-icon-user"></i>我的</a></li>					
		</div>


		<!--菜单 -->
		<div class=tip>
			<div id="sidebar">
				<div id="wrap">
					<div id="prof" class="item ">
						<a href="# ">
							<span class="setting "></span>
						</a>
						<div class="ibar_login_box status_login ">
							<div class="avatar_box ">
								<p class="avatar_imgbox "><img src="/mls_shop/web/Public/static/images/no-img_mid_.jpg " /></p>
								<ul class="user_info ">
									<li>用户名sl1903</li>
									<li>级&nbsp;别普通会员</li>
								</ul>
							</div>
							<div class="login_btnbox ">
								<a href="# " class="login_order ">我的订单</a>
								<a href="# " class="login_favorite ">我的收藏</a>
							</div>
							<i class="icon_arrow_white "></i>
						</div>

					</div>
					<div id="shopCart " class="item ">
						<a href="# ">
							<span class="message "></span>
						</a>
						<p>
							购物车
						</p>
						<p class="cart_num ">0</p>
					</div>
					<div id="asset " class="item ">
						<a href="# ">
							<span class="view "></span>
						</a>
						<div class="mp_tooltip ">
							我的资产
							<i class="icon_arrow_right_black "></i>
						</div>
					</div>

					<div id="foot " class="item ">
						<a href="<?php echo U();?>">
							<span class="zuji "></span>
						</a>
						<div class="mp_tooltip ">
							我的足迹
							<i class="icon_arrow_right_black "></i>
						</div>
					</div>

					<div id="brand " class="item ">
						<a href="#">
							<span class="wdsc "><img src="/mls_shop/web/Public/static/images/wdsc.png " /></span>
						</a>
						<div class="mp_tooltip ">
							我的收藏
							<i class="icon_arrow_right_black "></i>
						</div>
					</div>

					<div id="broadcast " class="item ">
						<a href="# ">
							<span class="chongzhi "><img src="/mls_shop/web/Public/static/images/chongzhi.png " /></span>
						</a>
						<div class="mp_tooltip ">
							我要充值
							<i class="icon_arrow_right_black "></i>
						</div>
					</div>

					<div class="quick_toggle ">
						<li class="qtitem ">
							<a href="# "><span class="kfzx "></span></a>
							<div class="mp_tooltip ">客服中心<i class="icon_arrow_right_black "></i></div>
						</li>
						<!--二维码 -->
						<li class="qtitem ">
							<a href="#none "><span class="mpbtn_qrcode "></span></a>
							<div class="mp_qrcode " style="display:none; "><img src="/mls_shop/web/Public/static/images/weixin_code_145.png " /><i class="icon_arrow_white "></i></div>
						</li>
						<li class="qtitem ">
							<a href="#top " class="return_top "><span class="top "></span></a>
						</li>
					</div>

					<!--回到顶部 -->
					<div id="quick_links_pop " class="quick_links_pop hide "></div>

				</div>

			</div>
			<div id="prof-content " class="nav-content ">
				<div class="nav-con-close ">
					<i class="am-icon-angle-right am-icon-fw "></i>
				</div>
				<div>
					我
				</div>
			</div>
			<div id="shopCart-content " class="nav-content ">
				<div class="nav-con-close ">
					<i class="am-icon-angle-right am-icon-fw "></i>
				</div>
				<div>
					购物车
				</div>
			</div>
			<div id="asset-content " class="nav-content ">
				<div class="nav-con-close ">
					<i class="am-icon-angle-right am-icon-fw "></i>
				</div>
				<div>
					资产
				</div>

				<div class="ia-head-list ">
					<a href="# " target="_blank " class="pl ">
						<div class="num ">0</div>
						<div class="text ">优惠券</div>
					</a>
					<a href="# " target="_blank " class="pl ">
						<div class="num ">0</div>
						<div class="text ">红包</div>
					</a>
					<a href="# " target="_blank " class="pl money ">
						<div class="num ">￥0</div>
						<div class="text ">余额</div>
					</a>
				</div>

			</div>
			<div id="foot-content " class="nav-content ">
				<div class="nav-con-close ">
					<i class="am-icon-angle-right am-icon-fw "></i>
				</div>
				<div>
					足迹
				</div>
			</div>
			<div id="brand-content " class="nav-content ">
				<div class="nav-con-close ">
					<i class="am-icon-angle-right am-icon-fw "></i>
				</div>
				<div>
					收藏
				</div>
			</div>
			<div id="broadcast-content " class="nav-content ">
				<div class="nav-con-close ">
					<i class="am-icon-angle-right am-icon-fw "></i>
				</div>
				<div>
					充值
				</div>
			</div>
		</div>
		<script>
			window.jQuery || document.write('<script src="/mls_shop/web/Public/static/basic/js/jquery.min.js "><\/script>');
		</script>
		<script type="text/javascript " src="/mls_shop/web/Public/static/basic/js/quick_links.js "></script>
	</body>

</html>